import Vue from 'vue'
import App from './App.vue'
import router from './router'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

// 阿里图标库
import './assets/icon/iconfont.css'

import global from './utils/global/global'

import gradientAnimation from '@/components/gradient-animation/gradient-animation'

Vue.prototype.$global = global

//在vue原型写入数据
Vue.prototype.setDir = function (param) {
  Vue.prototype.$global.dir = param
}

Vue.use(ElementUI)

//公共组件注册
Vue.component('gradientAnimation', gradientAnimation)

Vue.config.productionTip = false
//测试提交3

new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app')
